<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
</head>
<body style="border: 0px; margin: 0px; padding: 0px;width: 100%;height: 100%">
<div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="width:100%;">
        <tr>
            <td style="width:100%;">
            	<span style="color: #f00;">注：默认查询当天00:00~23:59数据</span>
            </td>
            <td style="white-space:nowrap;">
            	下单开始时间：<input name="startTime"  class="mini-datepicker" style="width: 180px" showClearButton="true" showClose="true" oncloseclick="closeT" allowInput="false"/>
                             下单结束时间：<input name="endTime" class="mini-datepicker" style="width: 180px" showClearButton="true" showClose="true" oncloseclick="closeT" allowInput="false"/>
                             物流公司：<input id="combo1" name="logisticsId" class="mini-combobox" style="width:180px;" textField="name" valueField="id" emptyText="请选择..."
					url="product_logistics_view.do" allowInput="false" showNullItem="true" nullItemText="请选择..."/>
				<a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>
            </td>
        </tr>
    </table>        
</div>
<div class="mini-fit" >
	<div id="datagrid0921" class="mini-datagrid" idField="id" pageSize="20" allowAlternating="true"
		url="product_sell_sta_view.do" style="width:100%;height: 100%">
		<div property="columns">
			<div type="indexcolumn"></div>
			<div field="productNo" width="10%" headerAlign="center" align="center">产品编号</div>
			<div field="productName" width="10%" headerAlign="center" align="center">产品名称</div>
			<div field="productPrice" width="6%" headerAlign="center" align="center">产品单价</div>
			<div header="发货总数" headerAlign="center">
                <div property="columns">
                    <div field="invoiceTotalNumber" headerAlign="center" align="center" width="7%">数量</div>
                    <div field="invoiceTotal" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="7%">金额</div>
                </div>
            </div>
			<div header="退货" headerAlign="center">
                <div property="columns">
                    <div field="backNumber" headerAlign="center" align="center" width="6%">数量</div>
                    <div field="backMoney" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="6%">金额</div>
                </div>
            </div>
			<div header="已发货" headerAlign="center">
                <div property="columns">
                    <div field="invoiceNumber" headerAlign="center" align="center" width="6%">数量</div>
                    <div field="invoiceMoney" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="6%">金额</div>
                </div>
            </div>
			<div header="签收" headerAlign="center">
                <div property="columns">
                    <div field="signNumber" headerAlign="center" align="center" width="6%">数量</div>
                    <div field="signMoney" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="6%">金额</div>
                </div>
            </div>
			<div header="对账" headerAlign="center">
                <div property="columns">
                    <div field="reconNumber" headerAlign="center" align="center" width="6%">数量</div>
                    <div field="reconMoney" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="6%">金额</div>
                </div>
            </div>
			<div header="回款" headerAlign="center">
                <div property="columns">
                    <div field="sectionNumber" headerAlign="center" align="center" width="6%">数量</div>
                    <div field="sectionMoney" headerAlign="center" align="center" dataType="currency" currencyUnit="￥" width="6%">金额</div>
                </div>
            </div>
		</div>
	</div>
</div>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid0921");
grid.load();
function search() {
	var startTime = mini.getbyName("startTime").getFormValue();
	var endTime = mini.getbyName("endTime").getFormValue();
	var logisticsId = mini.get("combo1").getValue();
	grid.load({startTime: startTime, endTime: endTime, logisticsId: logisticsId});
}

function closeT(e) {
	e.sender.setValue('');
	e.sender.setText('');
}
</script>
</body>
</html>